﻿//
// Created: 2018/11/4
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.Finance.DTO
{
    [NotMapped]
    public class  AccountBalanceModel : AccountBalance
    {
        [NotMapped]
        public int Total { get; set; }

        public string OrgaCodeStr {
            get {
                string str = "微信支付";
                switch (OrgaCode.Value){
                    case 0: str = "微信支付";break;
                    case 1: str = "支付宝支付"; break;
                    case 3: str = "银联支付"; break;
                    case 4: str = "线下支付"; break;                    
                }
                return str;                
            }
        }

        public string BuinessCodeStr
        {
            get
            {
                string str = "微信支付";
                switch (BuinessCode)
                {
                    case 0: str = "支付/消费"; break;
                    case 1: str = "退款/返现"; break;
                    case 2: str = "提成"; break;                 
                }
                return str;
            }
        }
        [NotMapped]
        public string CreateTimeStr
        {
            get
            {
                return CreateTime.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
    }
}